ci: Amend dependabot commits to use Cargo.lock file version 3#898
ci: Amend dependabot commits to use Cargo.lock file version 3#898
Conversation
69b69bd to
c5685c3
Compare
|
@3v1n0 this might work, but I think there's no way to test it beside merging to main and triggering another dependabot PR |
c5685c3 to
b05aa9a
Compare
b05aa9a to
8510b52
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #898 +/- ##
==========================================
- Coverage 85.50% 85.43% -0.08%
==========================================
Files 80 80
Lines 5547 5547
Branches 109 109
==========================================
- Hits 4743 4739 -4
- Misses 749 753 +4
Partials 55 55 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Good... I think it's better to experiment this... Other way could be to try this in a local fork where main is older than the current in Ubuntu. |
| name: Run custom steps on Dependabot PRs | ||
|
|
||
| on: | ||
| pull_request: |
There was a problem hiding this comment.
Maybe also ad filter when changes are touching the lock file? As there's no need for go updates
|
|
||
| - name: Amend commit and push | ||
| run: | | ||
| if git diff --quiet; then |
There was a problem hiding this comment.
Should we be explicit on file?
| if git diff --quiet; then | |
| if git diff --quiet -- "**Cargo.lock"; then |
| exit 0 | ||
| fi | ||
|
|
||
| git add -A |
There was a problem hiding this comment.
| git add -A | |
| git add "**Cargo.lock" |
| @@ -0,0 +1,35 @@ | |||
| name: Run custom steps on Dependabot PRs | |||
There was a problem hiding this comment.
Ah you may need to add permissions:
permissions:
pull-requests: write
contents: write(maybe contents isn't needed?)
dependabot keeps updating the version but it's not available in Noble, so we can't update it yet.